package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	Cache cache.CacheConf

	JwtAuth struct {
		AccessSecret string
		AccessExpire int64
	}

	Mysql struct {
		Datasource   string
		MaxIdleConns int64
		MaxOpenConns int64
	}

	Turn struct {
		PublicIp   string
		ListenPort int
		Realm      string
		Username   string
		Password   string
	}

	OssAdmin struct {
		Region     string
		EndPoint   string
		AccessKey  string
		Secret     string
		BucketName string
		OssUrl     string
		UploadMax  int64
		UploadDir  string
	}

	FsUploadConf struct {
		RecordPath string
	}

	FsEvent struct {
		Host string
		Port int64
		Pass string
	}

	SipText struct {
		DestNumber int64
	}
}
